/* 市场数据下载页面样式 */
.market-data-download-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 模态窗口样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  width: 500px;
  max-width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: #333;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.modal-body {
  padding: 24px;
}

/* 表单样式 */
.download-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  color: #555;
}

.date-range-display {
  display: flex;
  gap: 24px;
}

.date-display-group {
  flex: 1;
}

.date-text {
  padding: 8px 12px;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.download-button {
  padding: 12px 16px;
  background-color: #1976d2;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.download-button:hover {
  background-color: #1565c0;
}

.download-button:disabled {
  background-color: #b0bec5;
  cursor: not-allowed;
}

/* 进度条样式 */
.progress-container {
  margin-top: 20px;
  width: 100%;
}

.progress-bar {
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background-color: #4CAF50;
  transition: width 0.3s ease;
}

.progress-message {
  font-size: 14px;
  color: #555;
  margin-top: 5px;
  text-align: center;
}

/* 状态样式 */
.download-status {
  padding: 10px;
  border-radius: 4px;
  margin-top: 10px;
  text-align: center;
}

.status-loading {
  background-color: #e3f2fd;
  color: #1976d2;
}

.status-success {
  background-color: #e8f5e9;
  color: #388e3c;
}

.status-error {
  background-color: #ffebee;
  color: #d32f2f;
}